import { Component } from "react";
import PropTypes from "prop-types";

class TestPropTypes extends Component {
  render() {
    return <h2>{this.props.name}</h2>;
  }
}

export default TestPropTypes;

TestPropTypes.propTypes = {
  name: PropTypes.string.isRequired
};
